<template>
  <div class="servicer-box">
    <div class="img-box" v-for="(item, index) in imgs" :key="index">
      <img class="img" :src="item.img" alt="智慧城市" />
      <div class="text">{{ item.tit }}</div>
      <div class="text2">{{ item.text }}</div>
    </div>
    <div class="more" @click="active()">更多案例>></div>
  </div>
</template>

<script>
export default {
  name: 'Field',
  data() {
    return {
      imgs: [
        {
          img: require('@/assets/images/anli1.png'),
          tit: '邱县新型智慧城市建设项目 ',
          text: '邱县'
        },
        {
          img: require('@/assets/images/anli2.png'),
          tit: '邯郸产教融合实训基地项目',
          text: '邯郸'
        },
        {
          img: require('@/assets/images/anli3.png'),
          tit: '河北省第四届邯郸园林博览会智慧园博项目',
          text: '邯郸'
        }
      ]
    }
  },
  methods: {
    active() {
      this.$router.push('/case')
    }
  }
}
</script>

<style lang="scss" scoped>
.servicer-box {
  padding-bottom: 1.03rem;
}
.img-box {
  margin: auto 0.3rem;
  background: #f4f4f4;
  box-shadow: 1px 1px 10px 10px rgba(192, 192, 192, 0.18);
  margin-bottom: 0.34rem;
  border-radius: 10px;
}
.img {
  width: 100%;
  margin: auto;
  display: block;
  border-radius: 10px 10px 0 0;
}
.text,
.text2 {
  font-weight: 400;
  color: #333333;
  line-height: 0.6rem;
  padding: 0 0.1rem;
}
.text {
  font-size: 0.32rem;
}
.text2 {
  font-size: 0.26rem;
  color: #999;
}
.more {
  width: 2.99rem;
  height: 0.79rem;
  border: 0.02rem solid #666666;
  color: #666666;
  text-align: center;
  font-size: 0.28rem;
  line-height: 0.79rem;
  margin: 0.5rem auto 0;
}
</style>
